package com.snowfeel.sfmall.sys.dto;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author guomenghuai
 * @date 2024/9/7
 * @Description
 */
public class SysUserRoleParam implements Serializable {

    /**
     * 用户id
     */
    @NotNull(message = "用户不能为空")
    private Long userId;

    /**
     * 角色id列表
     */
    @NotNull(message = "角色不能为空")
    private List<Long> roleIds;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public List<Long> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<Long> roleIds) {
        this.roleIds = roleIds;
    }
}
